How about this ?

```js
function dispatch({ type: topic, subject }) {
  emit(channel, "data", {
    type: types[topic],
    topic: topic,
    target: subject
  })
}
```