Extract ORM from model