Moved permission and message utilities to util package