Clean up settings file.