Revert "Removed unnecessary code from Insert<T>."

This reverts commit 83af316f9d18281e211d3d500c1e9d69e4beafd3.