```js
var UserIdentity = exports.UserIdentity = // etc.
```

Although exporting at EOF does not seems to me like a big problem in this specific case.