The legislative body may enter into a written contract or contracts with the owner or owners of such bonds and provide therein for the cancellation of the outstanding bonds and coupons and the issuance of refunding bonds therefor, subject to the provisions of this division.