Refactoring MigrationFile class