Remove multiple if statements in the geoserver cascading delete logic.