I'd like to simplify this if possible. Could this be expressed as:

```diff
- var type = Utils.data.find(['data.type', 'type'],
-   Utils.safe.bind(null, message));
+ var type = message.data ? message.data.type : message.type;
```

and if so, could you then remove `Utils.safe` and `Utils.data.find`?