Refactor handling of SECRET_KEY in settings.py.