def process_key(activity, level):
    """ Return the actual activity class name, according to the given level
    """
    key = activity[activity.index('_')+1:]
    if level == 'mid':
        key = key[:key.rindex('_')]
    return key