Remove anything unrelated to authentication.