MDL-43089 Move repaginate class into the namespace.
MDL-43089 add back required function that we had deleted.
MDL-43089 fix remaining quiz behat test.