Put permissionprocesser code into functions for maintainability.  https://app.asana.com/0/19128794071848/21140848412800