Start refactoring WaveletTransform