Wrapping TheorySetsPrivate in a unique_ptr. (#2356)