Replace packages with packageOf in documents