Converting server format filters to return a Stream rather than writing to output directly