Move the call_fn to outside create_handler so it's not created for each handler.