The illegality defence (which aims to prevent a party benefiting from its illegal conduct via legal claims) has been the subject of considerable judicial analysis in commonwealth jurisdictions in recent years.
Imagine you are the CEO of company sitting across from an interviewer. The interviewer asks you the age old question, “So tell me about your company’s strengths and weaknesses?” You start thinking about your competitive advantages that distinguish you from competitors. You decide to talk about how you know your customers better than the competition, including who they are, what they need, and how your products and services fit their needs and desires. The interviewer, being somewhat cynical, asks “Aren’t you worried about the liabilities involved with collecting all that data?”