Grouping BOM components by component reference