Refactor Args module as a class with more generic use.