Reorganizing function as in M.Bostock's component
Reorganizing function as in M.Bostock's component

This helps removing the hardcoded parentSVG element

Enucatl/d3.colorbar,bmschmidt/colorbar,bmschmidt/colorbar