chore(utils): moving some utils from refactor-planning

Moving some of the utils from refactor-planning into this repo.