Historically, the general rule adopted was that all clauses in restraint of trade were considered invalid.