Small refactoring of initialize_site_collection