Rename doRestructure to dispatch.