def _clean_max_team_size(value):
    """
    Return `value` if it's a positive int, otherwise None.
    """
    if not isinstance(value, int):
        return None
    if value < 0:
        return None
    return value