Text this: Framework for harm elimination in light of the Islamic legal maxims