Refactor some element.