Refactored OpsGenie class