Refactor candidate pages class into two distinct views (party and province).