Adds 'import only allowed as a top-level task' back into ImportTask.