Moving hash normalization into it's own method