Refactorizing e2_inserted_word.rb