ActiveAE: remove obsolete code, refactor SampleOfNoise