and `version` is actually not used at all in `prepare` so you can remove all the `version` in `prepare` and use `req.params.version` here