The point is: the German factory automation business already exists and is huge. Germany already sells this world-wide. Tesla just bought a tiny share into it.
Industry 4.0 - Germany's 4th industrial revolution
https://www.youtube.com/watch?v=Y990kaGbJD0
Industry 4.0 in the Volkswagen Group
https://www.youtube.com/watch?v=JTl8w6yAjds
"Industrie 4.0" - Bosch plant in Blaichach, Germany
https://www.youtube.com/watch?v=GKhSTjraHlU
CAR FACTORY: Mercedes-Benz Industrie 4.0
https://www.youtube.com/watch?v=fdXRTKy_TrM
German car companies and their suppliers (Continental, Bosch, ...) have already lots of smart engineers in this domain. Their current factories are among the highest automated in the world. Volkswagen invested $15.3 billion in R&D last year, Daimler $7.6 billion, BMW $5.5 billion. Number one, three and seven in the automotive world.
Tesla was spending $0.7 billion for R&D in 2015.