How to work around legacy apps.

Anti-corruption layer pattern

Anti-corruption layer pattern

Example in the Github repo