Refactor to use UploadTransfer from common.