I'm going to move this new code to ``common/utils.py`` rather than mess up the current informal convention that ``helpers.py`` is for template filters etc.