Refactoring dependencies in poms.