Revert "Add support for allow-permission extension."

This reverts commit c2bd3a19cbdd422576de9ae3e5d1e15b6f3ea9b6.