Cleanup Writing::findCollectionId().