[PATCH v2 09/13] conf: Move address configuration into helper function