Refactor to use settings.development?