Source code classifier refactoring