dm mpath: remove extra nesting in map function