Moved directly out of `securesync/views.py`