Cleaned up svg defs declarations in d3.