Generalize associativity with backwards compatibility.