Back-End Engineer (Java Spring Boot): refactor legacy code