Refactor #adjacent_words