d3.gl.model uses d3gl as well. Minimal code duplication