This PR refactors the extension capability checks to be centralized in the `CapabilityGranter`. Release Notes: - N/A
extension
extension_host
env_logger
zlog