Replace some constants with N_AXIS.