Replace create_function calls with lambda functions.
This allows the IDE to pick up all code!

refs #4113