SECOND AMENDED AND RESTATED TERM LOAN AGREEMENT Dated as of December 20, 2016 among