This is a follow-up work item from #17508. Need to refactor react-menu to remove use of makeMergePropsCompat.