Cleaned up utils/views.py