Fix $this issue in PageType and remove core page_type path