Remove redundant code for Credential name fix

Only the `@NameWith` annotation is required to report the Credential
name.

JENKINS-25682