An attorney shall not participate in offering or making:
(a) a partnership, shareholders, operating, employment, or other similar type of agreement that restricts the right of an attorney to practice after termination of the relationship, except an agreement concerning benefits upon retirement; or
(b) an agreement in which a restriction on the attorney's right to practice is part of the settlement of a client controversy.