[Refactor] Extract method.