AMENDED AND RESTATED CREDIT AGREEMENT dated as of August 16, 2017 Among EXTRACTION OIL & GAS, INC. as Borrower,