Code duplication in Environment class was removed by introducing
HierarchicalMap utility class.