This was [pre-existing code](https://github.com/mozilla/kuma/pull/1138/files#L4L294), before I refactored it out of `view.py`. It's also [covered in a test](https://github.com/mozilla/kuma/pull/1138/files#L3L271). Probably worth filing a follow-up bug, but I didn't want to screw with the JSON functionality here too much while shifting things around.