remove unnecessary logic from GetAuthFromKind