Refactoring ctags indexer