IBM will spinoff legacy business to focus on cloud and AI services