Use options for page_id
Remove extraneous if.
Extract class