Refactor poller impl to prevent unused variable warning.