The company has begun cutting from units in order to invest more in AI.