Change dist function to use sklearn metrics
Extract normalizations and split transformers