extracted doctrine injection and entities to other modules