Refactored admin config into multiple directives