Section 37M. (a) Notwithstanding the provisions of chapter forty-one or chapter seventy-one or any other special or general law to the contrary, any city or town which accepts the provisions of this section may consolidate administrative functions, including but not limited to financial, personnel, and maintenance functions, of the school committee with those of the city or town; provided, however, that such consolidation may occur only upon a majority vote of both the school committee and in a city, the city council, with approval of the mayor required by law or in a town, the annual town meeting or in a town with no town meeting, the town council.

(b) Notwithstanding any general or special law to the contrary, a decision to consolidate functions pursuant to paragraph (a) of this section may be revoked by a majority vote of either the school committee of the city or town, or the city or town, or both as such vote is described in said paragraph (a).