Extract creating fallback functions as a separate method (ref gh-32).
Add helper methods to FunctionDescriptor and make use of them.