Remove invalid model specs and invalid factories