Refactor dotdotdot to use template for config.