[libvirt] [PATCH 3/5] Move capability formatting together