[Refactor] Extract methods.