reposetup: code cleanup