Code initialization cleaning in NesActivity, GcActivity and PsActivity