Extract method for readability