[POC] Class based indexes

This implementation is repeated 5 times in this file. I think it should be taken up to Operation (or at least to a new sub-parent "OneModelOperation").