Some refactoring. Page now has its own class inherited from BasePage.