AMENDED AND RESTATED CREDIT AGREEMENT Dated as of August 9, 2017 Among