PROV-1092 Code refactoring and exception handling
PROV-1092 Handle overwriting existing files in GitHub