Clear out everything not needed for NEAR