Restructuring migration files