Make discriminators work on nested documents. This technically functions but needs to be refactored because it assumes a 1-to-1 relationship between schemas and models.