new class to abstract some common page parameter parsing logic