Tests first, so behaviour does not change
Before migrating, we generate characterization tests that record how the current system behaves. Those tests run against the new code, catching differences in calculations, reports and edge cases that manual migration usually misses.