public static Optional<Object[]> remove(final String keyToRemove, final Object... keyValues) {
        return ElementHelper.remove((Object) keyToRemove, keyValues);
    }
Remove a key from the set of key/value pairs. Assumes that validations have already taken place to
assure that key positions contain strings and that there are an even number of elements. If after removal
there are no values left, the key value list is returned as empty.

@param keyToRemove the key to remove
@param keyValues   the list to remove the accessor from
@return the key/values without the specified accessor or an empty array if no values remain after removal
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java