Refactor: extract