Remove a few unneeded allocations.