refactoring Utils class and MinifyFactory class