That distinction between what a system does and what it should do seems crucial. I would keep three things separate: observed behavior, evidence for why it exists, and a business owner's decision about whether to preserve it.
We at PeakROI call this Requirements-Driven Engineering - firts try to extract and document the requirements from all possible sources (legacy documentation of any type, old completed backlog for 5 years, code reverce engineering, industry context - this all is processed well by the agents to get a hirarchical requirements spec).
Then we align this piece by piece with the product owners and migrate these pieces to the new techcnolgy while kipping the both old and new systems integrated until the migration completes.