Remove all "boundary" elements from SVG diagrams