When I was fighting against NAFTA, one of the things I found out was the export-to-Mexico figures the govt were boasting about included the value of the machines that were pulled out of our factories and shipped down there.
Many of the machines my customer (companies) sent to Mexico were basically no longer legal to operate within the United States due to changing OSHA regulations. The guarding requirements were so stringent and the controls were basically too obsolete to accept the more flexible point-of-operation guards.
Sometimes those machines were replaced by more modern, and productive machines. But it wasn't a one-for-one trade. Usually 3 or 4 obsolete machines were replaced by a single machine. Meaning 3 press operators (per shift) lost their jobs.