Clean up Activity permissions

Assigning values to variables makes it much easier to read and reason
about.