Refactoring of classifiers