Simplify implementation of Wires.replicate
Clean up Wires.network method