repository: removed createEntity() & createCollection() - use entity factory instead