Remove duplicate code in folder creation