Refactor setting api before suite code