Convert difficulty integer value into informative dictionary and vice versa.