How to handle an API breaking change