Refactoring  dependencies in utils modules