Moving/refactoring price code so its re-usable.

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>