$this->admin->getActiveSubclass() should do the trick ? it is better to have this at one place