Convert reason in rules to lambda from eval string