Reuse unrooted shape objects in the gfx backend