NH-3251: Removed a bunch of useless code.