Small refactoring PaymentRequestHandler.