[Libvirt-cim] [PATCH] Restructure infostore to facilitate code reuse of some functions