Refactored some code for payments_proxy_controller.