Refactoring as class- classifier