Remove unneeded sections