Factor into a config