[REFACTOR] Deduplicate code for monitorable file transfer

Change-Id: I7ce37909c81daf8feaf84b06f63e6937910f2a29
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1543
Tested-by: Jenkins CI
Reviewed-by: Damla Durmaz <ddurmaz88@gmail.com>
Reviewed-by: Arndt Lasarzik <alasarzik@gmail.com>
Reviewed-by: Franz Zieris <zieris@inf.fu-berlin.de>