Document reorganization