Remove each_pair logic.