Remove duplication in get_default_permissions()