Refactoring MigrationException into a separate file