Extract a function to generate a function name.
updated.