def pos_to_label_format(text):
    """Returns valid Bootstrap classes to label a ballot position."""
    return {
        'Yes':          'bg-yes text-light',
        'No Objection': 'bg-noobj text-dark',
        'Abstain':      'bg-abstain text-light',
        'Discuss':      'bg-discuss text-light',
        'Block':        'bg-discuss text-light',
        'Recuse':       'bg-recuse text-light',
        'Not Ready':    'bg-discuss text-light',
        'Need More Time': 'bg-discuss text-light',
    }.get(str(text), 'bg-norecord text-dark')