why not pass in the `hist` instead of `metrics` and `key`?