Can you do event["source_host"] here. You can then get rid of the .responds_to? call.

There are shims to allow .source_host but they will go away soon.