Prune dead code

This removes models that were marked for deletion, as well as associations related to them.