Refactor out the common parts of the configBuilders