Fix sqlalchemy using default GenFactory.