Updating code readability, refactoring valueOf to getValue to avoid confusion with Enum.valueOf