Reorganize and move helpers to a single file.
Use an argv encapsulation and add opts[replace] for helpers.