Refactor pom files