tidy upp class attrs in type hierarchy