Remove UndoStack from ModelInstance to temporarily fix circular dependency