Removes redundant tables.