When a board, committee, council, or other agency created by or pursuant to this code was preceded by an agency with the same or similar name and functions, members of the predecessor agency shall continue in office for the duration of the terms of office for which they were appointed and with the new members appointed shall constitute the new agency.