FYI, I copied this pattern from https://github.com/unbounce/lp-page-bundler/blob/master/app/service_objects/notifier.rb