Products of ideals of linear forms in quadric hypersurfaces