def process_hex(hex):
    """ Processes hex data into a more usable format. """
    # turn a hex section id into a hex category
    category = hex['category'].split('_')[2]
    hex['category'] = {
        'DataListTypes': 'common',
        'DataList1'    : 'major',
        'DataList2'    : 'grand'
    }[category]
    return hex