8fa406b03f
Misc refactorings part 4 And even more rearrangements to check the HIR tree before other checks. changelog: none