A rewiring of global manufacturing is under way