maven code refactoring