Rewrite insert in terms of insertLookupGen.
Rewrite insertWith in terms of insertLookupGen.