Move Function/Consumer extras up to util in gremlin-core.