Move GetWorkflow defination.