Clean metadata for classes