Change AccountMetric to take in an account key instead of an account