The Fremont factory was a stupid purchase. There aren't many other more expensive places to live where an auto factory could be placed. Detroit may be unfashionable and very far from the Silicon Valley, but I would wager that if Tesla made noises about possibly relocating their manufacturing there, there would be no problem getting a free building and lots of tax credits.
Exercise: Search for Fremont, CA on Google maps and plot the distance to Cupertino in the heart of the Silicon Valley. Now search for apartments and homes, sample some supermarket ads for food prices. Extra credit: Analyze your tolerance for multiple roommates in a small apartment and estimate how long you could go without planning several murders.