Move shared preference util out WritePermissionDAO