strip redundant settings