Refactor from Class to Module.