break up creation of collections and extraction of data