Use unique_ptr for the result of Registry entries.