(Speaking from experience from work)
As a result of my work experience, it was more beneficial to delete the legacy code and only provide the necessary functions when renewing the system.
(Speaking from experience from work)