move utilities out of xigt-xaml