Revert "Add breaking changes"

This reverts commit f60d65e124174465a63514acc90129731a9643d7.
Throw exception in deprecated functions