Shell-dependent level densities in nuclear reaction codes