Refactor config.r.