New class EntityToPerson, to replace calls to methods cast_from_entity_to_role & cast_from_entity_to_roles.
New class PersonToEntity, to replace methods filter_by_role, any_by_roles & sum_by_entity.