Refactor Authentication to separate namespace.