Refactoring dropping aggregated permission in dialog