Extracts constants into a enum.
Adds JUnit tests and refactors.