Moved the step processing code for content source refresh

The step now lives together with the tasks that use it