Refactoring and polymer elements