Conditionally define `:assoc`.