from_qualified_name now returns a class or an instance