Tesla will discontinue the Model S and X this spring, converting Fremont production to its Optimus robot program.