I don't think lawyer fees imply anything about the code quality. See: HealthCare.gov fiasco.
Even though it may be cheaper to just do it 10 times over with cheap one person shops and throw out the worst 9.
I get the feeling this "knowing who to sue" saying is a bit of a myth.