Created `iter_subclasses()` method and used it on appropriate places in
code.