Refactor to improve code readability
Refactor to improve code readability

Refactor the code to improve readability
splitting a very long method into 4, easier, methods.

Change-Id: Ib2e9fbdacaed5ee6bc17bee50abc36a2f49dd496
Signed-off-by: Simone Tiraboschi <cb03129c66ba4da7ba7044049d0f43907bf857bb@redhat.com>

oVirt/ovirt-image-uploader,oVirt/ovirt-image-uploader,oVirt/ovirt-image-uploader