Moved the Highmaps logic for overlapping data labels out to a module that can be reused in Highcharts.