Implementing HGTD properly in the DetFlags

This takes the DetFlag-related changes in !34928 (merged) into a separate smaller MR.

Merge request reports

Loading