objc_record: factorise out the class prefix