isolate units of work/logic to prevent deopts in merge and its variants