Refactor adaptable module.