Clean up the svg chaining.