Don't default to the local api if repo's api is needed

Bug: 69170
Change-Id: Ic24f26178cd3467a926f0b26fa36ee1fee5e1250