Convert PageGroup to using std::unique_ptr