Private-equity firm Charlesbank Capital Partners took a stake in an accounting firm two years ago, then quickly went on a buying spree to expand the business. The deal for Aprio was part of a wider private-equity rush into accounting that fueled rapid consolidation and transformed the industry. Now, Charlesbank and other private-equity firms are circling their next big target: law firms. “Our investment in Aprio definitely got the juices flowing from a legal investment standpoint,” said Mutian Rui, a principal at Charlesbank, a Boston-based firm that manages around $25 billion. Last month, Charlesbank acquired a stake in litigation defense firm…