I just replaced my panel. Absolutely nothing had to be brought to current code. No GFCI, No AFCI, no fixing over stuffed conduit.
It may depend on location, but, it would be counter productive to require full code compliance when an upgrade is made to part of a system. It would discourage...