Actually, I intended to use most of the existing function, just inserting a sort, and, removal of duplicate domain. But, yes, it could be a new function, leaving the existing one exactly as-is.
It would also be nice for the update to be active without having to edit the configuration file. I will leave it totally up to you on the best way to integrate.