Over the past 24 years, I've been through six major layoffs and it is always the middle managers that go first. Recently my company went through a massive layoff. I don't know a single developer that was let go, but plenty of middle and upper managers were.