Avoid pointless permission check in modular permission factory
Support for application preferences factory