Remove extra rules and TOC