Make config generation a bit less ugly