from typing import Counter


def session_referer_class(session):
    """Most common referer class in session (categorical)."""
    referer_class = Counter([r['referer_class'] for r in session]).most_common(1)[0][0]
    return referer_class