[PATCH] tools/virsh-pool: refactor smaller functions