Initial migration of ganji history and its dependencies.