Added helper to clean type.