Naming this createIndex would be better imho