#339: small refactoring, checking ability to publish into repository on auto publishing