Refactoring getArtifactPaths