Brokerages with diversified practice groups and modernized tech will be the most attractive to buyers and fetch the highest prices.