Moves core code from Noggin.cpp to NogginModule.cpp