refactor: move to utils.