[libvirt] [PATCH 3/8] conf: Extract name-parsing into its own function