Abstract out metric from embedding