Removes unneeded sections