The spread of codified state laws and Western-style legal education in the modern Muslim world has displaced traditional muftis from their historical role of clarifying and elaborating the laws applied in courts. Instead, fatwas have increasingly served to advise the general public on other aspects of Sharia, particularly questions regarding religious rituals and everyday life. Modern fatwas deal with topics as diverse as insurance, sex-change operations, moon exploration and beer drinking. Most Muslim-majority states have established national organizations devoted to issuing fatwas, and these organizations to a considerable extent replaced independent muftis as religious guides for the general population. State-employed muftis generally promote a vision of Islam that is compatible with state law of their country.