Use std::unique_ptr for PhiPaths