Limit the cost to reasonable costs. What is reasonable? Well, limiting the expense to the lower of the two parties' legal costs would strongly discourage the larger party from spending $500k on the case. And if they do it anyway, they pay for it themselves.