Simplified the implementation of a metric. Just need the metric definition and the SQL.