The midsize Legacy will be dropped after the 2025 model year, as U.S. consumers continue to shift away from sedans, making room for Subaru to build future EVs.