Refactor SiteController.