Updating `utility.extend()` to only call `utility.merge()` if needed