A restructuring will see more than half of its employees depart as focus shifts toward Flyme, AI software, and automotive systems.