initial write operation refactoring for remove and update

RUBY-676