In the language of first order logic we sometimes have certain symbols which are $n$-ary functions.
We are able to extend an axiomatic theory by introducing new functions and corresponding axioms. But the name "function" here is overloaded. In the context of LFOL an $n$-ary function is a syntactic construction which will appear as the function symbol followed by $n$ terms: $ft_1\ldots t_n$. However, in set theory, a function from set $X$ to set $Y$ is a subset of the cartesian product $X\times Y$ satisfying certain criteria. In this latter case the function $f$ is itself a set, and, in the context of LFOL, would be symbolized by a $0$-ary function (a constant). However, once the function is defined we will be interested in writing down something like $f(x)$ which would require, in the context of LFOL, a 1-ary function.
So the surprise to me, is that to define the function $f$ we require the introduction of TWO new function symbols to the language. One $0$-ary function for the set theoretic function $f$, and one $n$-ary function to facilitate the $f(x_1, \ldots, x_n)$ construction.
My question: Am I correct in my analysis here or am I somehow overcomplicating things? and if so, where am I going wrong?