Replace hard coded numbers in switch/case statements with corresponding enum values.