Re-factoring the legacy NAND code (legacy NAND now only in board-specific