[libvirt] [PATCH v2 03/19] rpc: refactor RPC service constructors to share more code