Move entities from repository to entities package.