refactoring do spring