[RFR] refactor _bom_explode for better modularity