Revert failed attempt to monadize Script.