Remove unnecessary anonymous function.