[libvirt] [PATCH v2 2/4] Move capability formatting together