CEO Kris Marszalek said the layoffs were in "roles that do not adapt in our new world" as the company integrates enterprise-wide AI.