Minor refactoring and cleanup
Use repository settings from the current build for downloading remote poms