Refactor element to module.