Move workflow wrapper to utils -- allows for easier testing of workflows