Attractor mechanism as a distillation procedure