It's a minor preference, but instead of `removed_own_access` you could set a `redirect_url` and then `return redirect(redirect_url)` rather than switch on the boolean variable.