(a) Code compliance. Alterations, repairs or rehabilitation work may be made to any existing structure, building, electrical, gas, mechanical or plumbing system without requiring the building, structure, plumbing, electrical, mechanical or gas system to comply with all the requirements of the technical codes provided that the alteration, repair or rehabilitation work conforms to the requirements of the technical codes for new construction. The county building official shall determine the extent to which the existing system shall be made to conform to the requirements of the technical codes for new construction. (b) Change in occupancy classification. If the occupancy classification of any existing building or structure is changed, the building, electrical, gas, mechanical and plumbing systems shall be made to conform to the intent of the technical codes as required by the county building official. (c) Historic structures. The provisions of the technical codes relating to the construction, alteration, repair, enlargement, restoration, relocation or moving of buildings or structures shall not be mandatory for existing buildings or structure identified and classified by the state or local jurisdiction as historic buildings when such buildings or structures identified and classified by the state or local jurisdiction as historic buildings when such buildings or structures are judged by the county building official to be safe and in the public interest of health, safety and welfare regarding any proposed construction, alteration, repair, enlargement, restoration, relocation or moving of buildings within fire districts.