If this function perform almost the same task as _getBuildStatus(), you should see if _getBuildStatus could be refined a little bit instead of having two functions doing the same thing.