Freeze hash constant
Extract case statement to hash for consistency