Refactor dir/_site.