Refactoring global utilities