The Japanese company is selling its battery manufacturing subsidiary even though it will grow increasingly reliant on EV batteries.