The global globalParams pointer clearly has the ownership, so std::unique_ptr is appropriate.
globalParams
std::unique_ptr