Extract super class.
Refactor authentication.