Remove unnecessary sections.