[IMP] Refactor eval functions for duplicate, lang, attachment