Reorganize templates.