Refactor GslOptimizer to use getters for params