Hyundai Motor Co. is trimming its car lineup to focus on crossovers and its budding battery-electric Ioniq subbrand.