Improve error message for duplicate index classes

To my knowledge, the 'HAYSTACK_EXCLUDED_INDEXES' setting is no longer
used.