Refactoring. Sdk delegate code moved to separate view controller