Pulled apart a flag method into two better methods

The method getPrimitiveElement(boolean) uses a flag to substantially change the method's behaviour. This hides intent, see: http://martinfowler.com/bliki/FlagArgument.html

Took the opportunity to let Intellij clean up the class from unused and unnecessary code.