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