Minor refactoring in ProcessedSource