Simplify Code around building DMI URLs