Correct handling duplicate template.
Remove unused controller.