refactorService