Remove references to history tables