[openSUSE/open-build-service] a1eb7a: Refactor code for tokens