It's enough to read flattensSources once.
Formatting.