[obs-commits] [openSUSE/open-build-service] 573b7a: [api] get rid of code duplication