Implement flash_helper to remove unwanted keys from flash. Fixes #3316

It seemed to me this was the only place where the config options were documented, but I'll remove this.