TS-2177: Improve code quality of FeatureAPIHooks.