A lawyer shall not participate in offering or making:
(a) a partnership or employment agreement that restricts the rights of a lawyer to practice after termination of the relationship, except an agreement concerning, either benefits upon retirement or an agreement pursuant to the provisions of Rule 1.17; or
(b) an agreement in which a restriction on the lawyer's right to practice is part of the settlement of a client controversy.