Refactor AuthInstaller and cleanup logging.