Cleanup in MagicLearnView