After years of pouring billions into building the metaverse, the company is scaling back and shifting in a new direction.