I remember now why this was needed. In GeoNode-client there were 2 libs, a spatial one and a non-spatial one. We need to exclude the spatial classes from the non-spatial one.