Legacy code documentation before migration