Refactor ExceptionContext catch block properties into a separate class.