This change is done for several reasons: - Move the logic where it is documented. - Test it with ResourcePatternHintTests. - Allow RuntimeHintsPredicates to leverage this logic.