Old does not mean useless.
A legacy system can be business-critical because it contains years of rules, data and practical knowledge. Modernisation starts by understanding those assets before changing the interface or platform.
Preserve › Separate › Rebuild › Validate
Existing data and schema
Business rules and calculations
Operational workflows
Integrations and dependencies
Modern web/mobile experience