This is ok to merge as is, but in the future, if the number of preferences grow, maybe it is better to simply:

```
return {'user_data': user._do_dict() }
```