[NET]: Clean proto_(un)register from in-code ifdefs