Move reusable things to utils