Cleans up CAS implementation in auth2 module.