Something like:

```py
for mode_cls, mode_constant in [(CBC, self._lib.whatever), ...]:
   self.regisre_cipher_adapter(AES, mode_cls, Thingy(self._lib.whatever, mode_constant))
```