Handle item removing and insertion in plugins