Refactoring the params parser object