Refactor: extract functions