Clean up some Wikipedia-specific code
create_and_init_document -> create_document