refactor: extract variable