The California factory producing those cars will be converted into a production line for the long-promised Optimus humanoid robot.