Move utility functions to dtsapplib