Assigning the routing to a bill of materials