in a facility conducted for the purpose of carrying out a program of—
(A) rehabilitation for individuals whose earning capacity is impaired by age or physical or mental deficiency or injury, or
(B) providing remunerative work for individuals who because of their impaired physical or mental capacity cannot be readily absorbed in the competitive labor market,
by an individual receiving such rehabilitation or remunerative work;