Optimization in ItemList::surround().