lodash groupby for decision grouping