dispatcher: use a single helper function for all ds_select_dst/domain functions