Remove unused code from the tabs template and remove unused templates.