Flatten a BOM

@richard_cj_gardner This thread has a few examples.