Is your feature request related to a problem or challenge?
ScalarFunction no longer has any use in the proto definition and can be removed. Noted in #10098 (comment)
Describe the solution you'd like
Proto file and code references updated to remove ScalarFunction.
Describe alternatives you've considered
No response
Additional context
No response