Xbox will lay off 3,200 workers as part of mass restructuring.