Minor comment: Maybe use another word that "entity identifier" here. The string you check does not identify an entity and is not the EntityId we use elsewhere. It is more like a type/sort.