Refactor into module.