Separating the xpi util functions in to a separate module