code: def _create_diff_action(diff, diff_key, key, value):
  
      '''
      DRY to build diff parts (added, removed, updated).
      '''
  
      if diff_key not in diff.keys():
          diff[diff_key] = {}
      diff[diff_key][key] = valuf _create_diff_action(diff, diff_key, key, value):
  
      '''
      DRY to build diff parts (added, removed, updated).
      '''
  
      if diff_key not in diff.keys():
          diff[diff_key] = {}
      diff[diff_key][key] = value
docs: DRY to build diff parts (added, removed, updated).