[PATCH v6 07/13] virParseOwnershipIds: Refactor