Moved code from process-withdrawal.js to outgoing-bridge.js