patent schema cleanup