[Patch RFC 11/15] network startup: Clean up duplicated Code