Drop custom error checking code

Drop custom error checking code from `EntityFactoryMixin.create`. Drop class
`factory.FactoryError` and reference `requests.exceptions.HTTPError` instead as
necessary. Update and simplify unit tests for the `factory` module.
This is a formatting fix, not a functional change.