Clean up authentication code into separate classes