Yeah, this is an icky way of doing it, this logic shouldn't even be in this function, really. I should pass the name from get_branch_name_from_number() to this function...