Revert "Allow index_name to be a proc."

This reverts commit 1d100ab335d4e9f0c5c27f5d5bd7cdc48899ff83.