Cleanup `baseIsEqual` and `baseMerge`.