Refactor the flags mechanisms and add related command line options to the rejit engine.