def merge_id_hashes(dist, src, id_references)
      dist = dist.with_indifferent_access
      src = src.with_indifferent_access

      id_references.each do |id_reference|
        array_of_refs = id_reference.split('/')

        merge_id_hashes_helper(dist, array_of_refs, src)
      end

      dist
    end
def merge_id_hashes(dist, src, id_references)
      dist = dist.with_indifferent_access
      src = src.with_indifferent_access

      id_references.each do |id_reference|
        array_of_refs = id_reference.split('/')

        merge_id_hashes_helper(dist, array_of_refs, src)
      end

      dist
    end
Merges the id arrays from two hashes while keeping only the id_references fields