Refactor entry module.