Deque<> code uses new factory support