Remove all unnecessary configuration parameters that can be detected automatically.