Refactored files migrator