Remove redundant permissions setting code.