Simplify config constructor.