AMENDED AND RESTATED TERM LOAN AGREEMENT dated as of October 26, 2018 among