A disappointing middle market is not only affecting law firms’ top and bottom lines, but also causing them to reallocate staff, tinker with recruiting, and lean harder into specialties, such as energy and life sciences, or sectors, such as manufacturing, according to deal lawyers, firm leaders, and consultants.