removing class hashref's where not necessary.