Improve integration of Shapes defined in ShapeFactories, Palette and Layers panels.