Remove `__has_extension` checks for features that are not available as extensions.

For those features, `__has_extension` checks are equivalent to `__has_feature` checks and thus they are unnecessary.
Merge branch 'bugfix/unnecessary_has_extension' into develop