Tesla has been hit hard by President Donald Trump's trade war, and the offshoring could help avoid some tariffs.