In reply to Jack Bryan:
From the UVM 1.2 release notes
The undocumented uvm_pkg::factory variable has been removed, as it was unsafe during static initialization, and incompatible with the uvm_coreservice_t class. References to this variable need to be upgraded to retrieve the factory via uvm_factory::get.