Move createEntityFromRow to EntitySpec