Make sure the instance has the factory reference when it needs it