Added separate function to add endpoints; removed persistWorkflow dependency on experimentForm.