Remove an extra anonymous function