Reverse-indexing resources by class binding.