refactoring spring-boot