A lot of communities have similar statutes. In my town, a building damaged more than 50% (51%, actually) must be rebuilt to modern codes. Otherwise, if it was "to code" when it was built, it's still "to code" now.