def METHOD_NAME(self, o):
    disciplines = o['metadata'].get('disciplines')
    if disciplines and isinstance(disciplines[0], str): # root schema v0
        return [dict(program_name=o) for o in disciplines]
    else:
        return [dict(program_name=o['discipline_name']) for o in disciplines]   # root schema v1