Refactor ORM entity loading classes and move them to a dedicated package

Description

Necessary for HSEARCH-4133. As an added benefit, this will probably allow us to solve HSEARCH-3771.

Environment

None
Fixed

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major