AMENDED AND RESTATED REPLACEMENT CREDIT AGREEMENT Dated as of May 15, 2017 among ARGAN, INC. (the “Company”), CERTAIN SUBSIDIARIES OF THE COMPANY, as Designated Borrowers, and BANK OF AMERICA, N.A., as the Lender