properly removing account and project from hash before writing the rule key to redis