Attempt at refactor for PermissionDenied