Minor optimization, reusing an UndoGroup instead of creating a new copy