Refactoring, combine parse() parameters into one class, and pass reference to the function.