[libvirt] [PATCH v2 05/10] conf: Extract name-parsing into its own function