Refactoring BaseModule (remove an unnecessary variable)