Lawyer and Accounting Success-fee structure?

What is your perspective on engaging legal and accounting providers on a success-fee basis, with payment contingent on closing and settled as part of transaction costs?