Removing unused templates