Move definition of methods that depends on the root being loaded. Placeholder for exportWorkspace.