Law firms don’t often go into a client representation expecting a fee dispute. But with clients scrutinizing their legal spend more than ever, it’s worth thinking about at the start.

Take Bill Cosby. Even as he just hired new lawyers to fight his criminal assault conviction, Cosby’s former counsel, Philadelphia-based law firm Schnader Harrison Segal & Lewis, has sued him over $282,000 in unpaid legal fees. (Cosby’s lawyers and Schnader Harrison did not respond to requests for comment.)