def get_races_from_message(message):
    """
    Parses a comma separated list from a Slack message with a kwarg of race.
    """
    message_kwargs = (
        message.get("kwargs", {"race": ""}).get("race", "").lower()
    )
    races = message_kwargs.replace(" ", "").split(",")
    return races