refactor: move flags into separate files.