Redundant qualifier removal in UndoRedoRecorder