restructuring according to tcatm's comment:
https://github.com/ffnord/ffmap-d3/pull/89#issuecomment-57132767