Move utility functions into a separate Utilities module