Ensuring unused settings are removed