I run the retail division of a mid-sized mortgage company. We use something called a FixedFee which is simply our cost plus all 3rd party fees (keep in mind we control escrow).
There are many companies that use similar models and guarantee all costs up front.