refactor: moved stateless utility helpers into /lib/utils