match refactor_config on cwoac/sharelatex