Extract configuration support into separate module.