The cuts come as the software giant invests billions of dollars in expanding its artificial intelligence infrastructure.
Massey, who was 30 weeks pregnant and spent four years with the company, was laid off via an e-mail sent to her inbox.