Made a re-usable _get_collection_from_name function