Converts an old key-value hash into a new format (Epicodus)