Per various comments, I would pass option into add_resource_descriptor_to_dereferencing_queue to have it call #dereference_queued_descriptor_hashes_and_build_registry if there is only one resource descriptor.