Create the "Poller" interface. Move logic from program code to library.