Fix StructForm.Bad for api requests

Remove some unused classes.  fixes #1091