Extact polling into own module.
Clean up old pipeline runner code