Issue #2534012 by phenaproxima, hussainweb, mikeryan: Move module-specific migration support into the file module