Extract Pom configuration logic out