It reminds me of how bankruptcy trustees make their money. I was talking with a bankruptcy lawyer about this a while ago. It seemed odd that the court fee for a bankruptcy is only a few hundred dollars but the trustee may have to spend many hours on a complex case.
He explained that the trustee is paid a percentage of the assets they sell off.