auto_init: Put net_if auto-initialization into its own function