Issue #2321323 by eshta: Refactor personalize_elements settings into a reusable method call.