Refactor: extract to method