Refactor repetition with obfuscation