* [SC] Added cleaning code to separate module.