IT firms restructure employee pyramids amid automation push