Refactor old page redirector into an extension