Moved permission utilities to util.Utils