Remove useless fields in schemas