Minor refactorings to the method scope_EntityReference_entity() in the class EntityDslScopeProvider