[libvirt-jenkins-ci PATCH 3/4] lcitool: Drop duplicated code