#SB-150: Implement indexing for hosted repositories

Non-functional commit: Re-indented the code.