The terms of Sections 5.16.010 and 5.16.020 shall not apply to any person who performs any religious or spiritual function of a priest, minister, rector or any accredited representative of a church or religion where such priest, minister, rector or accredited representative holds a certificate of credit, commission or ordination under the ecclesiastical laws of a religious corporation, incorporated under the laws of any state or territory of the United States, or any voluntary religious association, and who fully conforms to the rites and practices prescribed by the supreme conferences, convocation, convention, assembly, association or synod of the system or faith with which such person is affiliated; provided, however, that any church or religious organization which is organized for the primary purpose of conferring certificates of commission, credit or ordination for a price, and not primarily for the purpose of teaching or practicing a religious doctrine or belief, shall not be deemed to be a church or religious organization for purposes of this section. (Prior code § 46.01.003)