Simplify code fo find out which pipelines need to be fetched from GoCD
Simplify code fo find out which pipelines need to be fetched from GoCD

karmats/gocd-monitor,karmats/gocd-monitor,karmats/gocd-dashboard,karmats/gocd-dashboard