Replacing the greatest maslahah for the greatest mafsadah