Application - Refactoring autorization