setup: split off a function to handle hitting ceiling in repo search