Exposing minimal composition of Kohn–Sham theory and its extendability