Remove cruft from settings file.