That is part of the reason I took those jobs. Someone was going to do it, and I felt that I could do it in a way that kept the business healthy and was as respectful and careful about the humans impacted as possible (ensuring severance, having 1-1 conversations with every impacted person on my team, etc).
For context I was an executive brought in to restructure software companies after they were purchased or tucked in by the LBO side of a PE firm.