Move dealing with ORM from projector into repository.