mod_aspire: Yet more refactoring of DOM functions