#157 Factoring out currency conversion logic.