Extract indexer rake task to Indexer class