[meta] Refactor detecting of the target class