Convert internal flags to a (hidden) command class

They weren't supposed to be global flags in the first place, since they don't affect other commands.