Below is an excerpt from The Middle East by Bernard Lewis (p. 188). In my view it represents a far more moral stance based on a better sociological understanding:
In the early centuries of Islamic history, the relationship between the state and the ulema [Muslim scholars trained in Islam and Islamic law] was distant, even at times one of mutual suspicion. For the truly pious, the state was a necessary evil, but one with which good men would not become involved. The service of the state were obtained by extortion, and anyone who received a salary from the state was a participant in this sin. It became a commonplace in the biographies of pious and learned men that the hero of the narrative was offered an appointment by the state and refused it. The offer established his fame, the refusal his integrity.