[PATCH v7 07/14] virParseOwnershipIds: Refactor