AMENDED AND RESTATED FORM OF CUSTODY AGREEMENT dated as of October 30, 2015