Introduce FunctionDefinitionConverter

User-defined functions are replaced with expanded in-line formula.