Imagine if a pair of staunch BNP members had objected to being married by anyone other than a white British person because of their firmly held views on racial purity derived from the many books that had been written on the subject. They would still be wrong and, hopefully, thrown out of the Register Office without more ado.
I had a moment of conscience when I discovered the effect of serving Notices to Treat and Enter as part of the compulsory purchase of land and property for road schemes. People who had lived in their homes for thirty or forty years could be forced to move out as a result of a government minister's decision following a public inquiry. It was always ordinary people who bore the brunt of road schemes; large concerns would be negotiated with to minimise the impact. I suddenly realised that what I was doing was morally wrong to me. However, the actions of the department were lawful. I could not say to my line manager that I would do every part of my job except serve the notices because that was simply another stage in the road-building process. Consequently, I asked for a transfer to another part of the department that did not deal with compulsory purchase. I was fortunate that a vacancy arose.
The moral of this story is that if you live by your sincerely held conscience then you should be prepared to accept the consequences.