Remove Mage references from UndoList calls