refactor: factor out worker runtime getter