Extract to class method