Flatten collections import