IDMLPackage.get_spread_object_by_xpath(): remove duplicate code.