DinoDex refactor

Refactored DinoDex based on comments from first pull request.
Indent `when` one step more than `case`.