Slight cleanup of tundra.createRequestFunction()