Removing unneeded tables