refactor common currency entities to use library