Sample code to append to aras-labs-hide-tabs.js.
// show the BOM and BOM Substitute tabs only when the Part is an assembly
if (document.thisItem.getProperty("classification","") != "Assembly")
{
//Call hideTabs function
setTimeout(hideTabs, 50);
}