Refactor to module.