Replace `streamSources()` calls with `getSources()` in an attempt to reduce the amount of garbage created. Closes gh-13565
8376bc369