index: inline tenant.SrcPrefix (#955)
It had exactly one call site and the logic was super simple. So I think
it is clearer to just inline the logic here.
Test Plan: mechanical refactor so just CI. In a future PR I will be
adding better test coverage just on this function.