Paymill gateway refactoring

* Removes duplication
* Extracts complex method to class

I'm not sure how to go about the inner class. Should it stay there or be promoted to an actual class in another file? What's the norm in active merchant?

Thanks.