Map the value stream before the rewrite
Identify which modules create the most operational risk and which integrations block product velocity. Modernization should follow business impact, not the most interesting technical refactor.
A clear map also prevents teams from rebuilding low-value surface area first.