Remove unneeded arrays.