Since the branch name is the only thing that's different between these two calls, perhaps we could split it into 2 different functions to avoid hitting the API twice. Or maybe we don't really care.