Refactored static constants into enums.