If any part of a single consideration for one or more objects, or any one or any part of any one of several consideration for a single object is unlawful, the agreement is void. Illustration A promises to superintend, on behalf of B, a legal manufacture of indigo, and an illegal traffic in other articles. B promises to pay to A a salary of 10,...