SECOND AMENDED AND RESTATED CREDIT AGREEMENT Dated as of July 31, 2017 among