I’m not sure I want government officials deciding what laws they will obey.
We're talking about the accommodation of long-standing, provable religious beliefs that conflict with job requirements that are easily accommodated.
How to accommodate a magistrate not performing a homosexual wedding? You have a list of those who will and those who won't. When the issue comes up, you call one of those who will.
It's not rocket science.
As an army chaplain, we had a large number of allowable accommodations for religion that could be made for those from different religious groups. For example, what does it really hurt for a conservative Jew to wear a yarmulke? What does it really hurt for us to have kosher MREs?