Moved page factory to base class. TODO: Refactor super method (kostyl).