In the event the hospitals of a municipality coming under the provisions of this article are taken over by a hospital authority or other political subdivision, the officers and employees of such hospitals who are members of this pension fund, at the time the hospitals were taken over by said authority or subdivision and who become officers and employees of the hospital authority or political subdivisions on taking over such hospitals and such authority or political subdivision sets up a pension or retirement system, the board of trustees of said pension fund shall transfer to the authorities in charge of the pension or retirement fund of the hospital authority or political subdivision taking over said hospitals the amount of contributions made to the pension fund by the officer or employee of such hospitals while a member of said municipal pension fund, as well as the amount contributed by the municipality to match the contributions made by such members. When said board of trustees pays said funds into the pension or retirement fund of the hospital authority or political subdivision, such board of trustees shall stand fully discharged from any further obligations to such former member or members.