Section 26D. Upon the qualification of the commissioner of health first appointed under section twenty-six B, the terms of the then existing members of the board of health of the city or town shall terminate and said offices shall thereupon be abolished.