Deleted ExceptionFactory and removed unused methods.
Removed unused constructors.