Refine class names.