Make a helper method for primitive.metadata.query()['primitive_code']['class_type_arguments']['Hyperparams']
I have written this too many times.