Refactor utility functions into utils module.