Method to set as abstract refactored