RR: refactor out common config and slave config.