def parse_user_id(user_id):
    """
    Parse a user_id, removing possible @-notation and make sure it's uppercase.
    """
    if user_id.startswith("<@") and user_id.endswith(">"):
        return user_id[2:-1].upper()

    return user_id.upper()