This and grandfathering usually is only for single family dwellings. (As well, sometimes, as DIY wiring.)
Once you either rent out apartments, invite the public in (like a church), or do commercial stuff you may have to meet current codes and upgrade to future ones as well.
Here, one can DIY...