Typed insert update method support in ort, refactoring