Moved the entity adapter to the entities package.