The implementation in `DummyClassifier` seems far less complex to achieve the same functionality.