Remove unnecessary getValue function.

This function was just polluting the API of the library and was internal
only and making things more complicated rather than simplifying them.