Some refactoring of the GeoServer output generators.