A helper function like `int GetInteger(NotifyNotification*, const char* key)` could shorten this up a bit.