insert operation refactorings