CollectionUtilities: Fix cppcheck warning.
Restructure slightly so that cppcheck doesn't think we're trying to delete something accessed by a reference.
Restructure slightly so that cppcheck doesn't think we're trying to delete something accessed by a reference.