ipv4: Pull redirect instantiation out into a helper function.