Move NetLink related code to it's own file