These utility functions are best collected in a file outside of views.py.