Deobfuscate and simplify metadata code