Remove flattening script dependency