PIMCO FLEXIBLE MUNICIPAL INCOME FUND AMENDED AND RESTATED AGREEMENT AND DECLARATION OF TRUST August 23, 2018