DMI: remove duplicate helper routine