extract common reset class pattern to separate function on parent class.