Refactor code.
Add AuthorizationController.