Answer
The electron configuration of ions represents a stable, complete octet.
Work Step by Step
Valence electrons are added or taken away to make the entire atom as stable as possible, and that would be preferably when the atom has only core electrons and is isoelectronic with a noble gas.