Clean up settings.