Simple refactoring as discussed with @hsyl20.
Part of #17957
Main goal is to make it easier to maintain one set of 'DynFlags' per HomeUnit.