Higher interest rates and rising origination costs are expected to lead to more M&A activity in the mortgage market.