Use inferred object type for injected global constants