[Issue #1916] Refactoring AFErrorOrUnderlyingErrorHasCode to AFErrorOrUnderlyingErrorHasCodeInDomain

Making AFErrorOrUnderlyingErrorHasCodeInDomain and AFErrorWithUnderlyingError non-static