The layoffs come two months after GM announced it will focus on developing Cruise's autonomous tech for personal cars, rather than robotaxis.