Simplify service parsing by using index_by.