Implement distinctConsecutiveBy in terms of filterBy2