These layoffs may assist Fb’s mum or dad firm offset its aggressive spending on AI infrastructure, in addition to AI-related acquisitions and hiring.