It can't be as simple an algorithm as:
1. Buy a company
2. Spin off major assets into another company
3. Have the original take debt and pay the money to the spinoff
4. Bankrupt the original, but keep the healthy spinoff without paying any of the debt
5. Profit!
... can it?