Convert classical mapping to declarative mapping for SQLAlchemy.