Refactored module types into constants