refactor setting files