Removing old and duplicate settings