Refactor grid search and top feature output into the template for simpler svm customization.