They have big expansion plans and most of that is outside of California. So, I'd say this is a good move for them. They no longer need the Bay Area investors. That was always the main reason for being there. It was critical to them just a few years ago when they were struggling to survive. But they turned a corner and are now very profitable so they can cut loose from that safely.
Tesla is now a multinational and while California is still an important market for it, they have bigger markets that they are thinking about now where they are starting to operate huge factories as well. Fremont went from being the largest Tesla factory to being one of the older and smaller ones in a few years.