As part of the config update a few months ago I moved all flags into the same place and restructured some other parts but as a result a lot of the files in src/commands and src/config end up being very similar.
We should investigate how we can further reduce the amount of copy & paste code to make it easier to manage these files.