Revert "Simplify multiple config handling."

This reverts commit ff473f2f954401591455eb595e38f3d65964128e.
Merge topic 'target-transitive-sources' into next

e27e59e4 Revert "Simplify multiple config handling."