Not sure why lawyers don't have a "do not evil" code like doctors. To the contrary, other than in the tiniest edge cases, the code for lawyers is to vigorously defend your client no matter how evil they are, and it seems odd that no one ever thought that might be problematic.