Remove an unnecessary anonymous function call