Many firms are trying to diversify their practice areas to cash in on a spike in dealmaking activities and other hot practice areas.