Refactor monolith module.