My understanding is that, like SpaceX, Tesla's goal is to build a large number of the required parts in house, enabling rapid design iteration. There is also a goal to automate a large proportion of the manufacturing process, although it has become clear that the limits of current technology are being tested here.