(a) the state shall bear fifty percent of those costs required by the federal government including lands, easements, rights-of-way, relocations, and cash contributions if any.
(b) the benefiting municipality or municipalities shall bear fifty percent of those costs required by the federal government including lands, easements, rights-of-way, relocations, and cash contributions if any.
(c) the costs of all lands, easements, rights-of-way and relocations borne by the state or a benefiting municipality or municipalities shall be a credit against the respective shares of the state and the benefiting municipality or municipalities.
(d) the operation and maintenance of the project, once constructed, shall be the responsibility of the benefiting municipality or municipalities in accordance with the guidance and direction of the state and under the controlling principle that flood control is the primary purpose.
(e) replacement of project facilities shall be the responsibility of the state provided that replacement is not due to deferred maintenance. 4. Notwithstanding any other provisions of this section, for any flood control project for which a local cooperation agreement was developed or a letter of intent was furnished to the federal government before January first, nineteen hundred eighty-seven, the state of New York shall not pay less than the total costs of all lands, easements, rights-of-way, bridges and relocations, with the exception of lands owned by the benefiting municipality or municipalities and the relocation of facilities owned by the benefiting municipality or municipalities. 5. Any local cooperation agreement may include such additional terms and conditions as the commissioner may determine to be necessary.