Cleaned up settings sanitizer