Better yet, you can replace $f(x,y)$ with $f(x)$.  See the answer to <a href="http://mathoverflow.net/questions/26497/maximal-ideals-in-the-ring-kx1-xn">this question</a>.