refactoring operationType parameter for cancelAllOperationsOfType: method