Flatten functions folder