Moving IndexApi to its own plugin