Define the phantom global as a resource.