(1) Residential buildings or structures moved into or within a county or city are not required to comply with all of the requirements of the codes enumerated in chapters 19.27 and 19.27A RCW, as amended and maintained by the state building code council and chapter 19.28 RCW, if the original occupancy classification of the building or structure is not changed as a result of the move.
(2) This section shall not apply to residential structures or buildings that are substantially remodeled or rehabilitated, nor to any work performed on a new or existing foundation.
(3) For the purposes of determining whether a moved building or structure has been substantially remodeled or rebuilt, any cost relating to preparation, construction, or renovation of the foundation shall not be considered.