Refactor gateway options to its own class.