The only black magic used here is Fenchel conjugacy. Pick the payoff, take a conjugate and out comes your new CFMM.
This will work for any concave, nondecreasing, 1-homogeneous, nonnegative payoff, but maybe you can find ways to lend and short LP shares to do more.