JOHN HANCOCK FUNDS II AMENDED AND RESTATED Distribution Agreement