Merging support for by_key operations.