Reorganize flattened_executor header