Perhaps an optional hook instead of an `isinstance`? (Like the other patterns in this class.)