The company plans to lay off 2.5% of its global workforce.