Move argument parsing setup to separate module for use across scripts.