Move common functionality to utils project.