If you just want to use the E1 motor output to drive the Z motor in place of of the Z motor output, all you need is M584 X0 Y1 Z4 E3 in config.g. Put it before any M350 or M906 commands. Also, if you have a M569 P3 line in config.g, change P3 to P5 in that line.