def modify_expert_convert_config(old):
    """
    Also used in the modify expert
    """
    config = []
    for groupname, group in old.items():
        for rule_name, rule in group.items():
            config.append({'rulename': groupname + ' ' + rule_name, 'if':
                rule[0], 'then': rule[1]})
    return config
