Manage the hard parts of d3.force.layouts