Refactor seo controller.