[repo_setting] clean up code