This is a brutal situation and has been evolving for the past 40? 50? years.
This may be the time that supply chains are re-defined and some weight (as you mention with IP) is added to other factors when sourcing decisions are made. My direct experience is a little dated, but total costs for newer facilities (materials, construction labor, costs associated with safety, costs associated with environmental concerns) as well as ongoing labor, management including management or the PhD's ... are staggering in the money that was saved.
Just not an easy answer on this one.