MainSTay Funds Trust AMENDED AND RESTATED MANAGEMENT AGREEMENT