Remove references to session.