Refactoring "auth credential" classes.