Prohibiting the removal of a building code enforcement official except for cause and after an opportunity for a hearing by the appointing authority.