Rather than have all this boilerplate in each file, see the approach I took in `hps.rb` to share the boilerplate:

https://github.com/Shopify/active_merchant/blob/master/lib/active_merchant/billing/gateways/hps.rb#L40-L48

You'll need to adapt it, but it should reduce a lot of duplication.