Get rid of some unneeded copies.