Optimize imports in gremlin-driver.