Add factory for cursor writers