Minor code cleanup for the processing of the `source_data` flag