Access Manager define as npm module
Refactoring