This patch teaches moveFromOldBuckets to take an iterator_range so that it can use a range-based for loop.