remove filtered-out types from schema