Start breaking out branch name -> ref conversion