Remove unnecessary sections from the input files.