Rewrite filter to not modify existing dictionary