Refactor dir templates.