'Separates the config into a dict with a list of jobs per phase.
Allows us to skip phases without any jobs in them.'

def on_task_start(self, task, config):

    self.phase_jobs = {u'filter': [], u'metainfo': [], u'modify': []}
    for item in config:
        for item_config in item.values():
            phase = item_config.get(u'phase', u'metainfo')
            self.phase_jobs[phase].append(item)
