Slurp up deprecated flags, logging a warning

Fix #1141 
Or if you store them in a map in the first place then you don't need to reconstruct a map here every time