Code Refactor for deep_merge in activesuport/core_ext for Hash