Move some utils out of this repo to more generic "utils" repo.