Refactor focus template.
Remove unused code.