Factored out obfuscation code to its own class.