DRY to build diff parts (added, removed, updated).

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] = value