Where a contract is founded on illegality, such contract cannot be enforced in court. However, where the circumstance permit, the court may severe the good part of the contract from the fact that is touched by illegality. In doing this, the court must be satisfied that:
i. The illegal part of the contract is capable of being separated from the rest of the contract without doing any harm, to the contract without doing any harm to the meaning of the rest of the contract.
ii. The illegal promise must not form the main part of the contract
iii. The separation will not alter the intention of the parties to the contract.
See GOLDSOLL v GOLMAN (1915) I Ch. 292. WALLIS v DAY (1837) 2 M & W 273; ATTWOOD v LAMOUT (1920 3 KB 571