Refactored pegasus-transfer in order to handle transfers between incompatible protocols