OpsGenie Crashlytics integration

There is a copy of this code below.  Pull it into a helper method?