Simplify API by abstracting different metric types