Corporate legal departments are bringing work in-house like never before, a move driven partly by rising concern about outside legal counsel costs but also by the need to provide challenging work to in-house attorneys to retain them in a tight market.