Do not use unique_ptr when the raw pointer must be kept