Refactoring artifact fetching from local/maven repo