To the last person that posted.
"If your group feels expendable, it probably is."
To that we ALL would say pretty much most jobs are expendable these days so your argument isn't logical and it's very flawed.
"You can either evolve with the times, figure out where the business is going, position yourself in front of it, and be part of the solution."
To this we ALL say it's very easy to say this as a comment but the reality of mobility and changing roles is far more difficult than your dramatic oversimplification. And your "be part of the solution" sounds like lip service that we've all heard or read in a leadership book, just stop. This is reality with these decisions that are made so high above all of us with no rhyme or reason so your oversimplification of "feel good" advice isn't very good here either.
"You can continue standing on the train tracks of some niche team that can be eliminated through technology or a 6 hour uptraining of a larger more efficient group and play the victim when the train inevitably comes. Your call."
Again, a dramatic oversimplification and blanket statement that doesn't address the majority of the types of layoffs. Most layoffs were due to performance, downsizing departments by a few heads but keeping the department, or mid to upper management with no direct reports not related to niche groups or technology along with a few other types we can only speculate rhyme or reason for. Your blanket statement and victim blaming doesn't work here.
Sounds like this person wanted to share some insight they just gained from a book they read. Good grief. If you're not part of the solution you're part of the problem. What good did your comment bring? Nothing. Layoffs happened. No one has the answers. Move on. No need to try to give advice based on your own logic that doesn't apply to most people.