AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT dated as of May 7, 2018